package com.qdu.util;


import javax.servlet.http.HttpServletResponse;
import java.io.PrintWriter;

public class ResponseUtil {
	//向response对象写入数据
    public static void write(HttpServletResponse response, Object obj)throws Exception{
        response.setContentType("text/html;charset=utf-8");
        PrintWriter out = response.getWriter();
        out.println(obj.toString());
        out.flush();
        out.close();
    }
}